package io.renren.modules.app.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.app.entity.UserEntity;
import io.renren.modules.app.entity.UserRegistrationEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

// UserRegistrationDao.java
@Mapper
public interface UserRegistrationDao extends BaseMapper<UserRegistrationEntity> {
    @Select("SELECT * FROM user_registration WHERE driverID = #{driverid}  order by time desc limit 1")
    UserRegistrationEntity findByDriverid(int driverid);
    @Select("SELECT * FROM user_registration WHERE driverID = #{driverid}  order by time desc limit 1")
    UserRegistrationEntity findByID(int Id);

}
